package com.tpfinal.agenda.model;

public abstract class Contact {

	private int id;
	private String name;
	private String address;
	private int phone;
	private String email;
	private City cityInfo;

	public Contact(int id, String name, String address, int phone,
			String email, City cityInfo) {
		this.id = id;
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.email = email;
		this.cityInfo = cityInfo;

	}

	public Contact(String name, String address, int phone, String email,
			City cityInfo) {
		this.name = name;
		this.address = address;
		this.phone = phone;
		this.email = email;
		this.cityInfo = cityInfo;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public String getFullAddress() {
		return address + ", " + cityInfo.getCity().trim().toLowerCase();
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getPhone() {
		return phone;
	}

	public void setPhone(int phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public City getCityInfo() {
		return cityInfo;
	}

	public void setCityInfo(City cityInfo) {
		this.cityInfo = cityInfo;
	}

}
